package com.wyzz.hr.pojo.base;

import java.io.Serializable;
import java.util.Date;

import com.wyzz.hr.pojo.Emailsend;

public abstract class BaseEmailsend implements Serializable {

	public BaseEmailsend() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseEmailsend(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseEmailsend(String id, String esTo, String esTitle,
			String esContent, Integer esStatus, Date esCreatetime) {
		hashCode = 0x80000000;
		setId(id);
		setEsTo(esTo);
		setEsTitle(esTitle);
		setEsContent(esContent);
		setEsStatus(esStatus);
		setEsCreatetime(esCreatetime);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getEsFrom() {
		return esFrom;
	}

	public void setEsFrom(String esFrom) {
		this.esFrom = esFrom;
	}

	public String getEsTo() {
		return esTo;
	}

	public void setEsTo(String esTo) {
		this.esTo = esTo;
	}

	public String getEsCc() {
		return esCc;
	}

	public void setEsCc(String esCc) {
		this.esCc = esCc;
	}

	public String getEsTitle() {
		return esTitle;
	}

	public void setEsTitle(String esTitle) {
		this.esTitle = esTitle;
	}

	public String getEsContent() {
		return esContent;
	}

	public void setEsContent(String esContent) {
		this.esContent = esContent;
	}

	public Integer getEsStatus() {
		return esStatus;
	}

	public void setEsStatus(Integer esStatus) {
		this.esStatus = esStatus;
	}

	public Date getEsCreatetime() {
		return esCreatetime;
	}

	public void setEsCreatetime(Date esCreatetime) {
		this.esCreatetime = esCreatetime;
	}

	public Date getEsSendtime() {
		return esSendtime;
	}

	public void setEsSendtime(Date esSendtime) {
		this.esSendtime = esSendtime;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Emailsend))
			return false;
		Emailsend emailsend = (Emailsend) obj;
		if (null == getId() || null == emailsend.getId())
			return false;
		else
			return getId().equals(emailsend.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public String getStatusString() {
		switch (esStatus.intValue()) {
		case 0: // '\0'
			return "\u672A\u53D1\u9001";

		case 1: // '\001'
			return "\u5DF2\u53D1\u9001";

		case 2: // '\002'
			return "\u53D1\u9001\u5931\u8D25";
		}
		return "\u53D1\u9001\u5931\u8D25";
	}

	public static String REF = "Emailsend";
	public static String PROP_ES_TITLE = "esTitle";
	public static String PROP_ES_CREATETIME = "esCreatetime";
	public static String PROP_ES_STATUS = "esStatus";
	public static String PROP_ES_CONTENT = "esContent";
	public static String PROP_ES_TO = "esTo";
	public static String PROP_ES_SENDTIME = "esSendtime";
	public static String PROP_ES_FROM = "esFrom";
	public static String PROP_ES_CC = "esCc";
	public static String PROP_ID = "id";
	private int hashCode;
	private String id;
	private String esFrom;
	private String esTo;
	private String esCc;
	private String esTitle;
	private String esContent;
	private Integer esStatus;
	private Date esCreatetime;
	private Date esSendtime;

}
